package com.ecoolex.discount.sales.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DiscountOrderDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DiscountOrderDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DiscountOrderDetailExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DiscountOrderDetailExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DiscountOrderDetailExample example = new DiscountOrderDetailExample();
        return example.createCriteria();
    }

    public DiscountOrderDetailExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DiscountOrderDetailExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DiscountOrderDetailExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DiscountOrderDetailExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DiscountOrderDetailExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderDetailIdIsNull() {
            addCriterion("discountorderdetail.OrderDetailId is null");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdIsNotNull() {
            addCriterion("discountorderdetail.OrderDetailId is not null");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdEqualTo(Integer value) {
            addCriterion("discountorderdetail.OrderDetailId =", value, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderDetailId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdNotEqualTo(Integer value) {
            addCriterion("discountorderdetail.OrderDetailId <>", value, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderDetailId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdGreaterThan(Integer value) {
            addCriterion("discountorderdetail.OrderDetailId >", value, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderDetailId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountorderdetail.OrderDetailId >=", value, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderDetailId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdLessThan(Integer value) {
            addCriterion("discountorderdetail.OrderDetailId <", value, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderDetailId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdLessThanOrEqualTo(Integer value) {
            addCriterion("discountorderdetail.OrderDetailId <=", value, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderDetailId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdIn(List<Integer> values) {
            addCriterion("discountorderdetail.OrderDetailId in", values, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdNotIn(List<Integer> values) {
            addCriterion("discountorderdetail.OrderDetailId not in", values, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdBetween(Integer value1, Integer value2) {
            addCriterion("discountorderdetail.OrderDetailId between", value1, value2, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderDetailIdNotBetween(Integer value1, Integer value2) {
            addCriterion("discountorderdetail.OrderDetailId not between", value1, value2, "orderDetailId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("discountorderdetail.OrderId is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("discountorderdetail.OrderId is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("discountorderdetail.OrderId =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("discountorderdetail.OrderId <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("discountorderdetail.OrderId >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountorderdetail.OrderId >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("discountorderdetail.OrderId <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("discountorderdetail.OrderId <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.OrderId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("discountorderdetail.OrderId in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("discountorderdetail.OrderId not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("discountorderdetail.OrderId between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("discountorderdetail.OrderId not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andTransNoIsNull() {
            addCriterion("discountorderdetail.TransNo is null");
            return (Criteria) this;
        }

        public Criteria andTransNoIsNotNull() {
            addCriterion("discountorderdetail.TransNo is not null");
            return (Criteria) this;
        }

        public Criteria andTransNoEqualTo(String value) {
            addCriterion("discountorderdetail.TransNo =", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.TransNo = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTransNoNotEqualTo(String value) {
            addCriterion("discountorderdetail.TransNo <>", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.TransNo <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTransNoGreaterThan(String value) {
            addCriterion("discountorderdetail.TransNo >", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.TransNo > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTransNoGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.TransNo >=", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.TransNo >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTransNoLessThan(String value) {
            addCriterion("discountorderdetail.TransNo <", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.TransNo < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTransNoLessThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.TransNo <=", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.TransNo <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTransNoLike(String value) {
            addCriterion("discountorderdetail.TransNo like", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotLike(String value) {
            addCriterion("discountorderdetail.TransNo not like", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoIn(List<String> values) {
            addCriterion("discountorderdetail.TransNo in", values, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotIn(List<String> values) {
            addCriterion("discountorderdetail.TransNo not in", values, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoBetween(String value1, String value2) {
            addCriterion("discountorderdetail.TransNo between", value1, value2, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotBetween(String value1, String value2) {
            addCriterion("discountorderdetail.TransNo not between", value1, value2, "transNo");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("discountorderdetail.ProductId is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("discountorderdetail.ProductId is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("discountorderdetail.ProductId =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.ProductId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("discountorderdetail.ProductId <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.ProductId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("discountorderdetail.ProductId >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.ProductId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountorderdetail.ProductId >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.ProductId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("discountorderdetail.ProductId <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.ProductId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("discountorderdetail.ProductId <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.ProductId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("discountorderdetail.ProductId in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("discountorderdetail.ProductId not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("discountorderdetail.ProductId between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("discountorderdetail.ProductId not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andIsMainProductIsNull() {
            addCriterion("discountorderdetail.IsMainProduct is null");
            return (Criteria) this;
        }

        public Criteria andIsMainProductIsNotNull() {
            addCriterion("discountorderdetail.IsMainProduct is not null");
            return (Criteria) this;
        }

        public Criteria andIsMainProductEqualTo(Boolean value) {
            addCriterion("discountorderdetail.IsMainProduct =", value, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.IsMainProduct = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsMainProductNotEqualTo(Boolean value) {
            addCriterion("discountorderdetail.IsMainProduct <>", value, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.IsMainProduct <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsMainProductGreaterThan(Boolean value) {
            addCriterion("discountorderdetail.IsMainProduct >", value, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.IsMainProduct > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsMainProductGreaterThanOrEqualTo(Boolean value) {
            addCriterion("discountorderdetail.IsMainProduct >=", value, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.IsMainProduct >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsMainProductLessThan(Boolean value) {
            addCriterion("discountorderdetail.IsMainProduct <", value, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.IsMainProduct < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsMainProductLessThanOrEqualTo(Boolean value) {
            addCriterion("discountorderdetail.IsMainProduct <=", value, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.IsMainProduct <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsMainProductIn(List<Boolean> values) {
            addCriterion("discountorderdetail.IsMainProduct in", values, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductNotIn(List<Boolean> values) {
            addCriterion("discountorderdetail.IsMainProduct not in", values, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductBetween(Boolean value1, Boolean value2) {
            addCriterion("discountorderdetail.IsMainProduct between", value1, value2, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andIsMainProductNotBetween(Boolean value1, Boolean value2) {
            addCriterion("discountorderdetail.IsMainProduct not between", value1, value2, "isMainProduct");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberIsNull() {
            addCriterion("discountorderdetail.VoucherNumber is null");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberIsNotNull() {
            addCriterion("discountorderdetail.VoucherNumber is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberEqualTo(String value) {
            addCriterion("discountorderdetail.VoucherNumber =", value, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherNumberNotEqualTo(String value) {
            addCriterion("discountorderdetail.VoucherNumber <>", value, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherNumberGreaterThan(String value) {
            addCriterion("discountorderdetail.VoucherNumber >", value, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherNumberGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.VoucherNumber >=", value, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherNumberLessThan(String value) {
            addCriterion("discountorderdetail.VoucherNumber <", value, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherNumberLessThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.VoucherNumber <=", value, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherNumberLike(String value) {
            addCriterion("discountorderdetail.VoucherNumber like", value, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberNotLike(String value) {
            addCriterion("discountorderdetail.VoucherNumber not like", value, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberIn(List<String> values) {
            addCriterion("discountorderdetail.VoucherNumber in", values, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberNotIn(List<String> values) {
            addCriterion("discountorderdetail.VoucherNumber not in", values, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberBetween(String value1, String value2) {
            addCriterion("discountorderdetail.VoucherNumber between", value1, value2, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherNumberNotBetween(String value1, String value2) {
            addCriterion("discountorderdetail.VoucherNumber not between", value1, value2, "voucherNumber");
            return (Criteria) this;
        }

        public Criteria andVoucherPassIsNull() {
            addCriterion("discountorderdetail.VoucherPass is null");
            return (Criteria) this;
        }

        public Criteria andVoucherPassIsNotNull() {
            addCriterion("discountorderdetail.VoucherPass is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherPassEqualTo(String value) {
            addCriterion("discountorderdetail.VoucherPass =", value, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherPass = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherPassNotEqualTo(String value) {
            addCriterion("discountorderdetail.VoucherPass <>", value, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherPass <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherPassGreaterThan(String value) {
            addCriterion("discountorderdetail.VoucherPass >", value, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherPass > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherPassGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.VoucherPass >=", value, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherPass >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherPassLessThan(String value) {
            addCriterion("discountorderdetail.VoucherPass <", value, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherPass < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherPassLessThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.VoucherPass <=", value, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.VoucherPass <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVoucherPassLike(String value) {
            addCriterion("discountorderdetail.VoucherPass like", value, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassNotLike(String value) {
            addCriterion("discountorderdetail.VoucherPass not like", value, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassIn(List<String> values) {
            addCriterion("discountorderdetail.VoucherPass in", values, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassNotIn(List<String> values) {
            addCriterion("discountorderdetail.VoucherPass not in", values, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassBetween(String value1, String value2) {
            addCriterion("discountorderdetail.VoucherPass between", value1, value2, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andVoucherPassNotBetween(String value1, String value2) {
            addCriterion("discountorderdetail.VoucherPass not between", value1, value2, "voucherPass");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeIsNull() {
            addCriterion("discountorderdetail.Effectivetime is null");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeIsNotNull() {
            addCriterion("discountorderdetail.Effectivetime is not null");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeEqualTo(Date value) {
            addCriterion("discountorderdetail.Effectivetime =", value, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Effectivetime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectivetimeNotEqualTo(Date value) {
            addCriterion("discountorderdetail.Effectivetime <>", value, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Effectivetime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectivetimeGreaterThan(Date value) {
            addCriterion("discountorderdetail.Effectivetime >", value, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Effectivetime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectivetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountorderdetail.Effectivetime >=", value, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Effectivetime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectivetimeLessThan(Date value) {
            addCriterion("discountorderdetail.Effectivetime <", value, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Effectivetime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectivetimeLessThanOrEqualTo(Date value) {
            addCriterion("discountorderdetail.Effectivetime <=", value, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Effectivetime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectivetimeIn(List<Date> values) {
            addCriterion("discountorderdetail.Effectivetime in", values, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeNotIn(List<Date> values) {
            addCriterion("discountorderdetail.Effectivetime not in", values, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeBetween(Date value1, Date value2) {
            addCriterion("discountorderdetail.Effectivetime between", value1, value2, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andEffectivetimeNotBetween(Date value1, Date value2) {
            addCriterion("discountorderdetail.Effectivetime not between", value1, value2, "effectivetime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeIsNull() {
            addCriterion("discountorderdetail.Expiretime is null");
            return (Criteria) this;
        }

        public Criteria andExpiretimeIsNotNull() {
            addCriterion("discountorderdetail.Expiretime is not null");
            return (Criteria) this;
        }

        public Criteria andExpiretimeEqualTo(Date value) {
            addCriterion("discountorderdetail.Expiretime =", value, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Expiretime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiretimeNotEqualTo(Date value) {
            addCriterion("discountorderdetail.Expiretime <>", value, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Expiretime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiretimeGreaterThan(Date value) {
            addCriterion("discountorderdetail.Expiretime >", value, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Expiretime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiretimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountorderdetail.Expiretime >=", value, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Expiretime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiretimeLessThan(Date value) {
            addCriterion("discountorderdetail.Expiretime <", value, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Expiretime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiretimeLessThanOrEqualTo(Date value) {
            addCriterion("discountorderdetail.Expiretime <=", value, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Expiretime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiretimeIn(List<Date> values) {
            addCriterion("discountorderdetail.Expiretime in", values, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeNotIn(List<Date> values) {
            addCriterion("discountorderdetail.Expiretime not in", values, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeBetween(Date value1, Date value2) {
            addCriterion("discountorderdetail.Expiretime between", value1, value2, "expiretime");
            return (Criteria) this;
        }

        public Criteria andExpiretimeNotBetween(Date value1, Date value2) {
            addCriterion("discountorderdetail.Expiretime not between", value1, value2, "expiretime");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("discountorderdetail.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("discountorderdetail.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("discountorderdetail.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("discountorderdetail.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("discountorderdetail.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("discountorderdetail.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("discountorderdetail.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("discountorderdetail.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("discountorderdetail.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("discountorderdetail.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("discountorderdetail.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("discountorderdetail.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("discountorderdetail.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("discountorderdetail.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("discountorderdetail.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("discountorderdetail.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("discountorderdetail.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("discountorderdetail.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("discountorderdetail.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("discountorderdetail.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("discountorderdetail.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("discountorderdetail.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("discountorderdetail.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("discountorderdetail.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("discountorderdetail.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("discountorderdetail.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("discountorderdetail.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("discountorderdetail.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("discountorderdetail.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountorderdetail.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("discountorderdetail.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("discountorderdetail.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("discountorderdetail.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("discountorderdetail.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("discountorderdetail.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("discountorderdetail.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("discountorderdetail.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("discountorderdetail.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("discountorderdetail.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("discountorderdetail.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("discountorderdetail.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("discountorderdetail.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("discountorderdetail.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("discountorderdetail.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("discountorderdetail.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("discountorderdetail.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("discountorderdetail.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("discountorderdetail.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("discountorderdetail.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("discountorderdetail.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("discountorderdetail.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("discountorderdetail.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("discountorderdetail.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("discountorderdetail.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("discountorderdetail.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("discountorderdetail.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("discountorderdetail.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(DiscountOrderDetail.Column column) {
            addCriterion(new StringBuilder("discountorderdetail.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("discountorderdetail.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("discountorderdetail.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("discountorderdetail.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("discountorderdetail.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DiscountOrderDetailExample example;

        protected Criteria(DiscountOrderDetailExample example) {
            super();
            this.example = example;
        }

        public DiscountOrderDetailExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(DiscountOrderDetail.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(DiscountOrderDetail.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.discount.sales.entity.DiscountOrderDetailExample example);
    }
}